package config

import "time"

type Cache struct {
	Type       string `yaml:"type"`
	Redis      Redis  `yaml:"redis"`
	MaxSize    int    `yaml:"max_size"`
	Expiration int    `yaml:"expiration"`
}

type Redis struct {
	Addr        string        `yaml:"addr"`
	Password    string        `yaml:"password"`
	DB          int           `yaml:"db"`
	MaxIdle     int           `yaml:"max_idle"`
	MaxActive   int           `yaml:"max_active"`
	IdleTimeout time.Duration `yaml:"idle_timeout"`
}
